<?php
/* @var $this ChuyennganhController */
/* @var $model Chuyennganh */
/* @var $form CActiveForm */
?>

<div class="body-cont">
  <div class="col-9 row">
        <div class="mod">
        <div class="mod-bread"><a href="#">Trang chủ </a> > <a href="#">Admin</a> > <a href="#">Tạo chuyên ngành</a></div>
        <div class="pro-tit line-dot">
            	<h1> Tạo một chuyên ngành
                    <b class="social-top">
                    </b>   
                </h1>
            </div>
            
                <div class="form" style="padding-left: 10px; padding-right: 20px;">
                
                <?php $form=$this->beginWidget('CActiveForm', array(
                	'id'=>'chuyennganh-form',
                	'enableAjaxValidation'=>false,
                )); ?>
                
                	<?php echo $form->errorSummary($model); ?>
                
                	<div class="row">
                		<?php echo $form->labelEx($model,'Ngành học'); ?>
                		<?php echo $form->dropDownList($model,'nganhhoc_id',Nganh_hoc::getTypeNganhhoc()); ?>
                		<?php echo $form->error($model,'nganhhoc_id'); ?>
                	</div>
                
                	<div class="row">
                		<?php echo $form->labelEx($model,'Mã chuyên ngành'); ?>
                		<?php echo $form->textField($model,'chuyennganh_ma',array('size'=>60,'maxlength'=>100)); ?>
                		<?php echo $form->error($model,'chuyennganh_ma'); ?>
                	</div>
                
                	<div class="row">
                		<?php echo $form->labelEx($model,'Tên chuyên ngành'); ?>
                		<?php echo $form->textField($model,'chuyennganh_ten',array('size'=>60,'maxlength'=>100)); ?>
                		<?php echo $form->error($model,'chuyennganh_ten'); ?>
                	</div>
                	<div class="row buttons">
                		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
                	</div>
                
                <?php $this->endWidget(); ?>
                
                </div><!-- form -->

</div>
  </div>
</div>